import request from '@/utils/request';

export async function getLoginAuth(params: any) {
  const authRedirectUrl = '/login/oauth?auth_type=ding_talk';
  return request(authRedirectUrl, {
    method: 'POST',
    params: params,
    headers: {
      Authorization: 'Basic b2Ffd29ya2VyX3N1cGVydmlzaW9uOm9hX3dvcmtlcl9zdXBlcnZpc2lvbl9zZWNyZXQ=',
    },
  });
}
